import { dealOpts, COURSE } from './../api_type'
import request from '@/util/request'

// 上课时间
const courseGetClassTimes = (params, opts) => {
  return request.get(dealOpts(COURSE + '/getClassTimes', opts), params)
}

const courseDeleteClassTimes = (params, opts) => {
  return request.get(dealOpts(COURSE + '/deleteClassTime', opts), params)
}

const courseModifyClassTimes = (params, opts) => {
  return request.get(dealOpts(COURSE + '/modifyClassTime', opts), params)
}

const courseGetClassTimesInfo = (params, opts) => {
  return request.get(dealOpts(COURSE + '/getClassTimeInfo', opts), params)
}

const courseCreateClassTimes = (params, opts) => {
  return request.get(dealOpts(COURSE + '/createClassTime', opts), params)
}

const courseSetClassTimes = (params, opts) => {
  return request.get(dealOpts(COURSE + '/setClassTime', opts), params)
}

export default {
  // 上课时间
  courseGetClassTimes,
  courseDeleteClassTimes,
  courseModifyClassTimes,
  courseGetClassTimesInfo,
  courseCreateClassTimes,
  courseSetClassTimes
}
